package com.sharding.transaction.demo;

import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration;
import io.seata.rm.datasource.xa.DataSourceProxyXA;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import javax.annotation.Resource;
import javax.sql.DataSource;

@MapperScan({
        "com.baomidou.springboot.mapper*" ,"com.sharding.transaction.demo.mapper"
})
//@SpringBootApplication(exclude = {
//        DruidDataSourceAutoConfigure.class,
//        DataSourceAutoConfiguration.class,
//})
@SpringBootApplication
@EnableTransactionManagement
public class BootstrapApplication {


    public static void main(String[] args) {
        SpringApplication.run(BootstrapApplication.class, args);
    }

}

